{include file=$header_start}
{strip}
<script type="text/javascript" src="{$siteroot}/includes/js/admin/checkall.js" /></script>
{/strip}
{include file=$header_end}
{literal}
<script type="text/javascript">
$(function(){
$(".someClass").tipTip();
});

$(function(){
$(".someClass").tipTip({maxWidth: "auto", edgeOffset: 10});
});
</script>
{/literal}
<div class="contain">
      {include file=$left_menu}
      <div class="right_contain">
         <div class="heading_box">Manage Homeowner Users <a href="javascript:;" class="someClass" title="{$moduelArray.module_help_text}" style="float:right;"><img src="{$siteroot}/templates/admin/img/topic_icon6.png" /></a></div>
         <div class="whitebox">
         <!--Message Div Start-->
         {if $msg}
         <div class="masg_div">
         	{$msg}
         </div>
         {/if}
         <!--Message Div End-->
         <div>
          <!--Form Contain start-->
           <div class="table_viewbox">
            <!--<h2>Table Design</h2>-->
            <form name="searchFrm" id="searchFrm" method="post" action="{$siteroot}/admin/home.php?q=homeowneruser">
            	<table width="100%" border="0" cellpadding="3" cellspacing="5">
                	<tr>
                    	
                        <td align="right"><input type="text" name="search" id="search" class="input41" value="{if $search neq ''}{$search}{else}Username or Email{/if}" onfocus="this.value=''" onblur="if(this.value=='')this.value='Username or Email'" />&nbsp;<input type="submit" name="add" id="add" value="Search" class="admin_btn" />&nbsp;<input type="button" name="add" id="add" value="Clear" class="admin_btn" onclick="javascript: window.location='{$siteroot}/admin/home.php?q=homeowneruser';" /></td>
                    </tr>
                </table>
            </form>
            <form name="frm" id="frm" action="" method="post" >
            <input type="hidden" name="hidden_pageno" id="hidden_pageno" value="{$page}" />
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_viewbox">
              <tr>
                <th width="3%" align="center">#</th>
                <th width="3%"><input type="checkbox" name="check" id="check"  /></th>
                <th width="30%">
                	<div class="lF"><a {if $smarty.get.col1|base64_decode eq '0'} href="{$siteroot}/admin/home.php?q=homeowneruser&col1={1|base64_encode}&page={$page}" {else}href="{$siteroot}/admin/home.php?q=homeowneruser&col1={0|base64_encode}&page={$page}" {/if}>Homeowner Name</a></div>
                	<div class="lF" style="margin-left:10px;  height:15px;">
                    	<div style="width:10px; height:6px;"><a href="{$siteroot}/admin/home.php?q=homeowneruser&col1={0|base64_encode}&page={$page}" ><img {if $smarty.get.col1|base64_decode eq '1' || $smarty.get.col2 neq '' || $smarty.get.col3 neq ''} src="{$siteroot}/templates/admin/img/admin_toparrow_white.png" {else} src="{$siteroot}/templates/admin/img/admin_toparrow_black.png" {/if} title="ASC"  width="10" height="6" align="top"/></a> <br /></div>
                        <div style="width:10px; height:6px; margin-top:3px; *margin-top:4px;"><a href="{$siteroot}/admin/home.php?q=homeowneruser&col1={1|base64_encode}&page={$page}"><img {if $smarty.get.col1|base64_decode eq '0' || $smarty.get.col1|base64_decode eq ''} src="{$siteroot}/templates/admin/img/admin_downarrow_white.png" {else} src="{$siteroot}/templates/admin/img/admin_downarrow_black.png" {/if} title="DESC"  width="10" height="6" align="bottom" /></a></div>
                    </div>
                    <div class="clear"></div>   	
                </th>
                <th width="22%">
                	<div class="lF"><a {if $smarty.get.col2|base64_decode eq '0'} href="{$siteroot}/admin/home.php?q=homeowneruser&col2={1|base64_encode}&page={$page}" {else}href="{$siteroot}/admin/home.php?q=homeowneruser&col2={0|base64_encode}&page={$page}" {/if}>Email</a></div>
                	<div class="lF" style="margin-left:10px;  height:15px;">
                    	<div style="width:10px; height:6px;"><a href="{$siteroot}/admin/home.php?q=homeowneruser&col2={0|base64_encode}&page={$page}" ><img {if $smarty.get.col2|base64_decode eq '1' || $smarty.get.col2|base64_decode eq ''} src="{$siteroot}/templates/admin/img/admin_toparrow_white.png" {else} src="{$siteroot}/templates/admin/img/admin_toparrow_black.png" {/if} title="ASC"  width="10" height="6" align="top"/></a> <br /></div>
                        <div style="width:10px; height:6px; margin-top:3px; *margin-top:4px;"><a href="{$siteroot}/admin/home.php?q=homeowneruser&col2={1|base64_encode}&page={$page}"><img {if $smarty.get.col2|base64_decode eq '0' || $smarty.get.col2|base64_decode eq ''} src="{$siteroot}/templates/admin/img/admin_downarrow_white.png" {else} src="{$siteroot}/templates/admin/img/admin_downarrow_black.png" {/if} title="DESC"  width="10" height="6" align="bottom" /></a></div>
                    </div>
                    <div class="clear"></div>                 
				</th>
                <th width="15%">
	                <div class="lF"><a {if $smarty.get.col3|base64_decode eq '0'} href="{$siteroot}/admin/home.php?q=homeowneruser&col3={1|base64_encode}&page={$page}" {else}href="{$siteroot}/admin/home.php?q=homeowneruser&col3={0|base64_encode}&page={$page}" {/if}>Registered Date</a></div>
                	<div class="lF" style="margin-left:10px;  height:15px;">
                    	<div style="width:10px; height:6px;"><a href="{$siteroot}/admin/home.php?q=homeowneruser&col3={0|base64_encode}&page={$page}" ><img {if $smarty.get.col3|base64_decode eq '1' || $smarty.get.col3|base64_decode eq ''} src="{$siteroot}/templates/admin/img/admin_toparrow_white.png" {else} src="{$siteroot}/templates/admin/img/admin_toparrow_black.png" {/if} title="ASC"  width="10" height="6" align="top"/></a> <br /></div>
                        <div style="width:10px; height:6px; margin-top:3px; *margin-top:4px;"><a href="{$siteroot}/admin/home.php?q=homeowneruser&col3={1|base64_encode}&page={$page}"><img {if $smarty.get.col3|base64_decode eq '0' || $smarty.get.col3|base64_decode eq ''} src="{$siteroot}/templates/admin/img/admin_downarrow_white.png" {else} src="{$siteroot}/templates/admin/img/admin_downarrow_black.png" {/if} title="DESC"  width="10" height="6" align="bottom" /></a></div>
                    </div>
                    <div class="clear"></div>
                </th>
                <th width="20%">Action</th>
              </tr>
              {if $userArray}
              {section name=i loop=$userArray}
              <tr class="inactiverow" id="tr_{$userArray[i].id}">
                <td align="center">{$newid}</td>
                <td><input type="checkbox" name="checkall[]" id="checkall_{$smarty.section.i.iteration}" value="{$userArray[i].id}" /></td>
                <td>{$userArray[i].first_name|ucfirst}&nbsp;{$userArray[i].last_name|ucfirst}</td>
                <td>{$userArray[i].email}</td>
                <td>{$userArray[i].registered_date|date_format}</td>
                <td>
                    <span>
                    	{if $userArray[i].user_status eq '1'}
                    			<a href="{$siteroot}/admin/home.php?q=homeowneruser&id={$userArray[i].id|base64_encode}&action=status&status={$userArray[i].user_status}&page={$page}" onclick="javascript:return confirm('Are you sure do you want to change status?');" title="Currently Active"><img src="{$siteroot}/templates/admin/img/icon_correct.png" /></a>
                        {else}
                        		<a href="{$siteroot}/admin/home.php?q=homeowneruser&id={$userArray[i].id|base64_encode}&action=status&status={$userArray[i].user_status}&page={$page}" onclick="javascript:return confirm('Are you sure do you want to change status?');" title="Currently Inactive"><img src="{$siteroot}/templates/admin/img/close.png" /></a>
                        {/if}
                    </span>
                    
                    <span><a href="{$siteroot}/admin/home.php?q=edithomeowneruser&id={$userArray[i].id|base64_encode}&action=edit&page={$page}" title="Edit Homeowner User"><img src="{$siteroot}/templates/admin/img/icon_edit.png"/></a></span>
                    
                    <span><a href="{$siteroot}/admin/home.php?q=detailhomeowneruser&id={$userArray[i].id|base64_encode}&page={$page}"><img src="{$siteroot}/templates/admin/img/icon-search.png" title="Homeowner User Details" /></a></span>
                    
                    <span><a href="{$siteroot}/admin/home.php?q=homeowneruser&id={$userArray[i].id|base64_encode}&action=delete&page={$page}" title="Delete Homeowner User"><img src="{$siteroot}/templates/admin/img/icon-delete.png" onclick="javascript:return confirm('Are you sure do you want to delete this record?');" /></a></span>
                </td>
              </tr>
              <!-- {$newid++} -->
              {/section}
               {else}
              <tr>
               <td colspan="6" align="center" class="error">Record Not Found</td>
              </tr>
              {/if}
               <tr>
                <td colspan="6">
                 {if $userArray}
                <div class="select_box">
                <select name="action" id="action" class="input width">
                  <option value="">Select</option>
                  <option value="active">Active</option>
                  <option value="inactive">Inactive</option>
                  <option value="delete">Delete</option>
                  </select>&nbsp;<input type="submit" class="admin_btn" value="Go" name="go" id="go" /><div id="errormsg" class="error"></div> 
                  
                  </div>
                  {/if}
                  <div class="pagination">
                  {if $pagination}{$pagination}{/if}
                  </div>
                   </td>
                  
              </tr>
            </table>
</form>
         </div>
            <!--Form Contain end--> 
         </div>
         </div>
        </div>
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
{include file=$footer}